class AddArticle < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.column :title, :string,:null=>false
      t.column :blurb, :string, :null=>false
      t.column :body,	:text, :null=>false

      #date.. but maybe we just use the date from the edition!
      t.column :article_date, :datetime, :null=>false

      #Author is an user!.. change this
      t.column :author, :string, :null=>false
    end
  end

  def self.down
    drop_table :articles
  end
end

